package com.njzxw.fs.serversys.controller;

import com.njzxw.fs.commonutil.web.BaseController;
import com.njzxw.fs.commonutil.web.ReturnMap;
import com.njzxw.fs.serversys.bean.CityInfoBean;
import com.njzxw.fs.serversys.server.CityInfoServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 获取城市列表
 */
@RestController
@RequestMapping("city")
public class CityInfoController extends BaseController {

    @Autowired
    CityInfoServer cityInfoServer;

    @RequestMapping("getCityList")
    public ReturnMap getCityList(HttpServletRequest request, HttpServletResponse response, @RequestBody CityInfoBean cityInfoBean) {
        return cityInfoServer.getCityList(request, response,cityInfoBean);
    }
}
